#Temperature Conversion

#general if statement
#if condition:
#	statements
#elif condition:
#	statements
#else
#	statements

# comparision operators
#  == equals
#  != does not equal
#  < less than
# > greater than
# >=, <=   less / greater than or equal to

choice = raw_input("Enter C to convert Celcius to Farenheit or F to convert Farenheit to Celcius:")

#convert from C to F
if choice == "c":	
	Tc = int(raw_input("Enter the temperature in Celcius: "))
	Tf = (9.0/5.0)*Tc+32.0
	print Tc, "in Farenheit is", Tf

#convert from F to C
elif choice == "f":
	Tf = int(raw_input("Enter the temperature in Farenheit: "))
	Tc = (5.0/9.0)*(Tf-32.0)
	print Tf, "in Celcius is", Tc

else:
	print "Invalid choice."